package com.hqd.ch03.v39.web.servlet.mvc;

import com.hqd.ch03.v39.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 控制器接口
 */
@FunctionalInterface
public interface Controller {
    /**
     * 处理请求
     *
     * @param request
     * @param response
     * @return
     * @throws Exception
     */
    ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception;
}
